package modelLayer.Exceptions;


public class BalanceUnderrunException extends IllegalArgumentException {
    private double balance, amount;
    private String message;
    
    public BalanceUnderrunException(String message,double balance, double amount) {
        this.message=message;
        this.balance=balance;
        this.amount=amount;
        
    }
    public double getBalance() {
        return balance;
    }
    public double getAmount() {
        return amount;
    }
    public String getMessage() {
        return message+"you have "+balance+" dkk but you tried to withdraw "+amount+" dkk";   
    }    
}

